import initData from '../../state_static'

function goodsReduer(state=initData.goods,action){
    switch(action.type){
        case 'ADD_GOODS':
                console.log(action)
                let newLists=[...state.lists,action.list];
               //  console.log(newLists)
                return{...state,lists:newLists}
                
            default:return state;
    }
}

export default  goodsReduer